home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 5
/
Amiga Plus Sonderheft 1996 #5.iso
/
programme
/
imagedesk304
/
imagedesk
/
installid
< prev
next >
Wrap
Text File
|
1996-06-06
|
12KB
|
452 lines
; Install script for ImageDesk (Workbench 3.0 or higher)
(set @default-dest "work:")
(set #CDir "C:")
(set #KeyPath "S:")
;=============================================================================
; English strings
(set default_lang 4)
(set #bad-kick "I'm sorry. ImageDesk needs Amiga-OS 3.0 or higher")
(set #install-msg
(cat "\n\nIMAGEDESK INSTALLATION\n"
"Don´t forget to read 'ImageDesk.guide'\n"
"after the installation.\n"
"ImageDesk © 1994-1996 Reinhard Haslbeck\n"
"All rights reserved."
)
)
(set #Proc-msg
(cat "Please choose one of the two program versions\n"
"which are listed below. The MC68020 version\n"
"should run on 030 and 040 machines too."
)
)
(set #Wicon-msg "Which kind of icons do you prefer?")
(set #MIPFIC-msg
(cat "MIPFIC is an ImageDesk tool\n"
"It converts ImageDesk catalogs\n"
"into IFF pictures.\n"
"Do you want me to install it?"
)
)
(set #Exit-msg
(cat "ImageDesk now has been installed.\n"
"If You wanna have JPEG support, You have to\n"
"install the 'Tower JPEG Codec' too.\n"
"You will find it in the directory 'JPEG Codec'."
)
)
(set #Copy020Msg "Copying 68020 version...")
(set #Copy000Msg "Copying 68000 version...")
(set #CopyMIPFICMsg "Copying MIPFIC...")
(set #CopyMIPFICDocMsg "Copying MIPFIC.doc...")
(set #CopyIFFLibMsg "Installing iff.library")
(set #AskDirMsg "Please select install directory.\nDrawer >ImageDesk< will be created")
(set #CopyComMsg "These are a few useful tools.\nDo You want to intstall them?")
(set #CopyKeyMsg "Installing keyfile...")
(set #DontCopyMSg "I'm going to install Your keyfile.\nDon't give it away, it includes some\nof Your personal data!")
(set #AskCatMsg "Do You want to install some Catalog examples?")
(set #PosMsg "Yes")
(set #NegMsg "No")
(set #CopyCatMsg "Copy these files?")
(set #AskCatDescMsg "Do You want me to copy the catalog\ndescription file for developers?")
(set #CopyCatDescMsg "Copying catalog description...")
(set #CopyICONMsg "Working on default project icon")
(set #ToolTypeMsg "Setting icon attributes")
(set #AskRexxMsg "Do You want to install some AREXX example scripts?")
(set #ExtractMsg "Stay a bit patient\nextracting files from archive...")
;=============================================================================
; German strings
(if (= @language "deutsch")
(
(set default_lang 2)
(set #bad-kick "Zu dumm! ImageDesk benötigt leider Amiga-OS 3.0 oder höher")
(set #install-msg
(cat "\n\nIMAGEDESK INSTALLATION\n"
"Vergessen Sie nicht die Anleitung 'ImageDesk.guide'\n"
"nach der Installation zu lesen.\n"
"ImageDesk © 1994-1996 Reinhard Haslbeck\n"
"Alle Rechte vorbehalten."
)
)
(set #Proc-msg
(cat "Wählen Sie bitte welche der beiden untenstehenden\n"
"Programmversionen installiert werden soll.\n"
"MC68020 sollte auch auf 030 und 040 Maschinen laufen."
)
)
(set #Wicon-msg "Wählen Sie welche Icons\ninstalliert werden sollen.")
(set #MIPFIC-msg
(cat "MIPFIC ist ein Zusatzprogramm für\n"
"ImageDesk. Es erzeugt IFF-Bilder\n"
"aus ImageDesk-Katalogen.\n"
"Soll es ebenfalls installiert werden?"
)
)
(set #Exit-msg
(cat "ImageDesk ist nun installiert.\n"
"Wenn Sie JPEG Unterstützung haben wollen, müssen\n"
"Sie den 'Tower JPEG Codec', ebenfalls installieren.\n"
"Er befindet sich im Verzeichnis 'JPEG Codec'."
)
)
(set #Copy020Msg "Kopiere 68020 Version...")
(set #Copy000Msg "Kopiere 68000 Version...")
(set #CopyMIPFICMsg "Kopiere MIPFIC...")
(set #CopyMIPFICDocMsg "Kopiere MIPFIC.doc...")
(set #CopyIFFLibMsg "Installiere iff.library")
(set #AskDirMsg "Wählen Sie bitte den Installationspfad.\nDas Verzeichnis >ImageDesk< wird darin angelegt.")
(set #CopyComMsg "Dies sind einige nützliche Tools.\nSollen sie installiert werden?")
(set #CopyKeyMsg "Installiere Keyfile...")
(set #DontCopyMSg "Es wird nun das Keyfile kopiert. Geben\nSie es keinesfalls weiter, es sind einige\nIhrer persönlichen Daten darin enthalten!")
(set #AskCatMsg "Sollen einige Catalog Beispiele installiert werden?")
(set #PosMsg "Ja")
(set #NegMsg "Nein")
(set #CopyCatMsg "Diese Dateien Kopieren?")
(set #AskCatDescMsg "Soll die Katalogbeschreibung\nfür Entwickler kopiert werden?")
(set #CopyCatDescMsg "Kopiere Katalogbeschreibung")
(set #CopyICONMsg "Arbeite am default project icon")
(set #ToolTypeMsg "Setze Icon-Attribute")
(set #AskRexxMsg "Sollen einige AREXX Beispiele installiert werden?")
(set #ExtractMsg "Bitte etwas Geduld\nextrahiere Dateien aus Archiv...")
))
;=============================================================================
; For installation of italian guides
(if (= @language "italiano")
(
(set default_lang 32)
(set #install-msg
(cat "\n\nIMAGEDESK INSTALLATION\n"
"Installs the italian guide file.\n"
"All other texts and messages will be in english.\n"
"ImageDesk © 1994-1996 Reinhard Haslbeck\n"
"All rights reserved."
)
)
))
;=============================================================================
; make sure we are running under a 3.0 OS
(if (< (/ (getversion) 65536) 39)
(
(abort #bad-kick)
))
;=============================================================================
(message #install-msg)
(set ProcVers (askchoice
(prompt #Proc-msg)
(help @askchoice-help)
(choices "MC68020" "MC68000")
)
)
(set WhichIcons (askchoice
(prompt #Wicon-msg)
(help @askchoice-help)
(choices "Standard" "MagicWB-Style")
)
)
(set @default-dest (askdir
(prompt #AskDirMsg)
(help @askdir-help)
(default @default-dest)
)
)
(set dummy (tackon @default-dest "ImageDesk"))
(makedir dummy)
(set @default-dest dummy)
(complete 5)
(working #ExtractMsg)
(run ("c/lhex -qw=T: x InstData.lha")
)
(complete 10)
;====== copy english stuff ======
(if (= default_lang 4)
(
(copyfiles
(prompt "Copying english guide file...")
(help @copyfiles-help)
(source "T:InstData/ImageDeskE.guide")
(dest @default-dest)
(newname "ImageDesk.guide")
(infos)
(confirm)
)
(if (exists "T:InstData/OrderForm")
(
(copyfiles
(prompt "Copying english OrderForm file...")
(help @copyfiles-help)
(source "T:InstData/OrderForm")
(dest @default-dest)
(newname "OrderForm")
(infos)
(confirm)
)
))
))
;====== copy german stuff ======
(if (= default_lang 2)
(
(copyfiles
(prompt "Kopiere deutsche guide Datei...")
(help @copyfiles-help)
(source "T:InstData/ImageDeskD.guide")
(dest @default-dest)
(newname "ImageDesk.guide")
(infos)
(confirm)
)
(if (exists "T:InstData/Bestellformular")
(
(copyfiles
(prompt "Kopiere deutsches Bestellformular...")
(help @copyfiles-help)
(source "T:InstData/Bestellformular")
(dest @default-dest)
(newname "Bestellformular")
(infos)
(confirm)
)
))
))
;====== copy italian stuff ======
(if (= default_lang 32)
(
(copyfiles
(prompt "Copying italian guide file...")
(help @copyfiles-help)
(source "T:InstData/ImageDeskI.guide")
(dest @default-dest)
(newname "ImageDesk.guide")
(infos)
(confirm)
)
(if (exists "T:InstData/OrderForm")
(
(copyfiles
(prompt "Copying english OrderForm file...")
(help @copyfiles-help)
(source "T:InstData/OrderForm")
(dest @default-dest)
(newname "OrderForm")
(infos)
(confirm)
)
))
))
(complete 30)
;====== install 68020 version =====
(if (= ProcVers 0)
;then
(copyfiles
(prompt #Copy020Msg)
(help @copyfiles-help)
(source "T:InstData/ImageDesk.020")
(dest @default-dest)
(newname "ImageDesk")
(infos)
(confirm)
)
;)
;====== install 68000 version =====
;else
(copyfiles
(prompt #Copy000Msg)
(help @copyfiles-help)
(source "T:InstData/ImageDesk.000")
(dest @default-dest)
(newname "ImageDesk")
(infos)
(confirm)
)
)
(complete 35)
;====== install MIPFIC =====
(if (askbool (prompt #MIPFIC-Msg) (choices #PosMsg #NegMsg) (help @askbool-help))
(
(copyfiles
(prompt #CopyMIPFICMsg)
(help @copyfiles-help)
(source "T:InstData/MIPFIC")
(dest @default-dest)
(newname "MIPFIC")
(infos)
(confirm)
)
(copyfiles
(prompt #CopyMIPFICDocMsg)
(help @copyfiles-help)
(source "T:InstData/MIPFIC.doc")
(dest @default-dest)
(newname "MIPFIC.doc")
(infos)
(confirm)
)
(copylib
(prompt #CopyIFFLibMsg)
(help @copylib-help)
(source "T:InstData/libs/iff.library")
(dest "LIBS:")
(confirm)
)
))
(complete 40)
;== install default project icon ==
(if (= WhichIcons 0)
;then Standard Icons
(copyfiles
(prompt #CopyICONMsg)
(help @copyfiles-help)
(source "T:InstData/ID_DefProjIcon.info")
(dest @default-dest)
(newname "ID_DefProjIcon.info")
(confirm)
)
;else MagicWBIcons
(
(copyfiles
(prompt #CopyICONMsg)
(help @copyfiles-help)
(source "T:InstData/ID_DefProjIconMWB.info")
(dest @default-dest)
(newname "ID_DefProjIcon.info")
(confirm)
)
(copyfiles
(prompt #CopyICONMsg)
(help @copyfiles-help)
(source "T:InstData/ImageDeskMWB.info")
(dest @default-dest)
(newname "ImageDesk.info")
(confirm)
)
)
)
(tooltype
(prompt #ToolTypeMsg)
(help @tooltype-help)
(dest (tackon @default-dest "ID_DefProjIcon"))
(setdefaulttool (tackon @default-dest "ImageDesk"))
(confirm)
)
(complete 50)
;====== install Catalog tools =====
(copyfiles
(prompt #CopyComMsg)
(help @copyfiles-help)
(source "T:InstData/c/")
(dest #CDir)
(all)
(confirm 1)
)
(complete 70)
;====== Copy example Catalogs =====
(if (askbool (prompt #AskCatMsg) (choices #PosMsg #NegMsg) (help @askbool-help))
(
(copyfiles
(prompt #CopyCatMsg)
(help @copyfiles-help)
(source "T:InstData/example/")
(dest (tackon @default-dest "example"))
(all)
(confirm 1)
)
))
(complete 80)
;====== Copy catalog description =====
(if (askbool (prompt #AskCatDescMsg) (choices #PosMsg #NegMsg) (help @askbool-help))
(
(copyfiles
(prompt #CopyCatDescMsg)
(help @copyfiles-help)
(source "T:InstData/CatDescription")
(dest @default-dest)
(newname "CatDescription")
(infos)
(confirm)
)
))
(complete 85)
;====== Copy rexx Scripts =====
(if (askbool (prompt #AskRexxMsg) (choices #PosMsg #NegMsg) (help @askbool-help))
(
(copyfiles
(prompt #CopyCatMsg)
(help @copyfiles-help)
(source "T:InstData/rexx/")
(dest (tackon @default-dest "rexx"))
(all)
(confirm 1)
)
))
(complete 90)
;====== install keyfile ========
(if (= (run "GetEnv KEYPATH") 0)
(
(set #KeyPath (getenv "KEYPATH"))
)
)
(if (exists "s/ImageDesk.Key")
(
(message #DontCopyMsg)
(copyfiles
(prompt #CopyKeyMsg)
(help @copyfiles-help)
(source "s/ImageDesk.Key")
(dest #KeyPath)
(newname "ImageDesk.Key")
)
)
)
(run ("delete T:InstData ALL QUIET FORCE")
)
(message #exit-msg)
(complete 100)